package com.yundin.service;

import com.yundin.entity.AddressBook;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface AddressBookService {
    List<AddressBook> list(AddressBook addressBook);

    void save(AddressBook addressBook);
    AddressBook getById(Long id);
    void update(AddressBook addressBook);
    @Transactional
    void setDefault(AddressBook addressBook);
    void deleteById(Long id);


}
